package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "会员地址表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_user_addr")
public class UserAddr extends BaseEntity {
    /**
     * 会员ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "会员ID")
    private Long userId;

    /**
     * 收货人姓名
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "收货人姓名")
    private String name;

    /**
     * 省ID
     */
    @TableField(value = "province_id")
    @ApiModelProperty(value = "省ID")
    private Integer provinceId;

    /**
     * 省名称
     */
    @TableField(value = "province_name")
    @ApiModelProperty(value = "省名称")
    private String provinceName;

    /**
     * 市ID
     */
    @TableField(value = "city_id")
    @ApiModelProperty(value = "市ID")
    private Integer cityId;

    /**
     * 市名称
     */
    @TableField(value = "city_name")
    @ApiModelProperty(value = "市名称")
    private String cityName;

    /**
     * 区iD
     */
    @TableField(value = "district_id")
    @ApiModelProperty(value = "区iD")
    private Integer districtId;

    /**
     * 区名称
     */
    @TableField(value = "district_name")
    @ApiModelProperty(value = "区名称")
    private String districtName;

    /**
     * 收货详细地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "收货详细地址")
    private String address;

    /**
     * 收货地址经纬度
     */
    @TableField(value = "gps")
    @ApiModelProperty(value = "收货地址经纬度")
    private String gps;

    /**
     * 邮编
     */
    @TableField(value = "zip")
    @ApiModelProperty(value = "邮编")
    private String zip;

    /**
     * 电话
     */
    @TableField(value = "tel")
    @ApiModelProperty(value = "电话")
    private String tel;

    /**
     * 手机
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "手机")
    private String phone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 是否是默认地址
     */
    @TableField(value = "default_flag")
    @ApiModelProperty(value = "是否是默认地址")
    private Boolean defaultFlag;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NAME = "name";

    public static final String COL_PROVINCE_ID = "province_id";

    public static final String COL_PROVINCE_NAME = "province_name";

    public static final String COL_CITY_ID = "city_id";

    public static final String COL_CITY_NAME = "city_name";

    public static final String COL_DISTRICT_ID = "district_id";

    public static final String COL_DISTRICT_NAME = "district_name";

    public static final String COL_ADDRESS = "address";

    public static final String COL_GPS = "gps";

    public static final String COL_ZIP = "zip";

    public static final String COL_TEL = "tel";

    public static final String COL_PHONE = "phone";

    public static final String COL_EMAIL = "email";

    public static final String COL_DEFAULT_FLAG = "default_flag";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}